package be.ikdoeict.ga.operators;

import be.ikdoeict.ga.population.IIndividual;
import be.ikdoeict.ga.IRandomGenerator;

public class SinglePointMutation extends Mutation {
	private IRandomGenerator random;
	private int index = 0;
	
	public SinglePointMutation(IRandomGenerator random) {
		this.random = random;
	}
	
	@Override
	protected void mutationImplementation(IIndividual individual) {
<<<<<<< local
		// TODO: use random
		int changeIndex = index++; 
		double newValue = individual.getGenome()[changeIndex] + 1;
		
		individual.getGenome()[changeIndex] = newValue;
=======
		// TODO Auto-generated method stub

>>>>>>> other
	}

}
